<template>
  <w-confirm class="f-dfish-dialog">
    <w-horizontal class="f-dfish-dialog-head" height="40">
      <w-dialog-move>
        <w-html class="f-dfish-dialog-title" width="*">{{title||'操作提示'}}</w-html>
      </w-dialog-move>
      <w-html class="f-dfish-dialog-close" width="40" @click="close"><i class="f-i f-i-close"></i></w-html>
    </w-horizontal>
    <w-vertical height="*" class="f-dfish-dialog-body">
      <slot name="default"></slot>
    </w-vertical>
  </w-confirm>
</template>

<script>
  import $ from '../dfish.js'

  export default {
    props: ['title'],
    methods: {
      close(e) {
        $.close(e)
      }
    }
  }
</script>

<style>

</style>
